home *** CD-ROM | disk | FTP | other *** search
/ AMIGA-CD 2 / Amiga-CD - Volume 2.iso / ungepackte_daten / 1995 / 4 / 02 / kartentricks / listing1.c < prev    next >
C/C++ Source or Header  |  1995-06-01  |  606b  |  26 lines

  1. #include <graphics/gfxbase.h>
  2. #include <clib/exec_protos.h>
  3. #include <stdio.h>
  4.  
  5. struct GfxBase *GfxBase;
  6.  
  7. int main(void)
  8. {
  9.     if (GfxBase = (struct GfxBase *)
  10.                    OpenLibrary("graphics.library",37))
  11.     {
  12.         if(GfxBase -> ChipRevBits0 & GFXF_HR_AGNUS)
  13.             printf("32k Blitter\n");
  14.         if(GfxBase -> ChipRevBits0 & GFXF_AA_ALICE)
  15.             printf("AGA\n");
  16.         else
  17.         {  if(GfxBase -> ChipRevBits0 & GFXF_HR_DENISE)
  18.                 printf("ECS\n");
  19.            else
  20.                 printf("OCS\n");
  21.         }
  22.         CloseLibrary(GfxBase);
  23.     }
  24.     return(0);
  25. }
  26.